import request from "@/utils/request";

export function listApi(data) {
  return request({
    url: "/WorkLog/getWorkLogin",
    method: "POST",
    formData: true,
    data,
  });
}

// 有码项目
export function listApi2(data) {
  return request({
    url: '/workManger/getWorkLogsPage',
    method: 'POST',
    formData: true,
    data
  })
}

export function detailApi(data) {
  return request({
    url: "/WorkLog/getWorkLoginById",
    method: "POST",
    data,
  });
}

export function addApi(data) {
  return request({
    url: "/WorkLog/addWorkLogin",
    method: "POST",
    data,
  });
}
//弹框用
export function DialogListApi(data) {
  return request({
    url: "/ManageProjects/getProject",
    method: "POST",
    formData: true,
    data,
  });
}

export function cailiaoPage(data) {
  return request({
    url: "/zhmsbg/ZHProject/getProMatterPage",
    method: "POST",
    formData: true,
    data,
  });
}
export function piwenPage(data) {
  return request({
    url: "/zhmsbg/ZHProject/getProApprovalPage",
    method: "POST",
    formData: true,
    data,
  });
}
